<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace App\Http\Models\Student;

use App\Http\Models\RequestValidator;

/**
 * Description of StudentFrontendImproveFrom
 *
 * @author Admin
 */
class StudentFrontendImproveFrom extends RequestValidator
{
      public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'realName' => 'required',
            'phone'  => 'required',
            'openId'  => 'required',
//            'country'  => 'required',
//            'province' => 'required',
//            'city'     => 'required',
            'sex'=>'required'
        ];
    }

    public function messages()
    {
        return [
            'realName.required' => '姓名不能为空',
            'phone.required'  => "手机号不能为空",
            'openId.required'  => "open_id不能为空",
//            'country.required'  => '国家不能为空',
//            'province.required' => '地区不能为空',
//            'city.required'     => '城市不能为空',
            'sex.required'     => '性别不能为空',
        ];
    }
}
